<div class="box">
  <div class="box-header " style="position: relative;">
    
    <ob_link><a class="btn PositionAdd" url="{:url('staffPositionAdd',array('staff_id' => $info['id']))}"><i class="fa fa-plus"></i> 调 岗</a></ob_link>
    <!-- <ob_link><a class="btn export" url="{:url('aduitStaff')}"><i class="fa fa-download"></i> 审 核</a></ob_link> -->

    </div>
    <br/>
  </div>
    
  <div class="box-body">
    <div class="row">
      <div class="col-md-4">
        <div class="form-group">
          <label>姓名</label>
          <span>（员工姓名）</span>
          <input readonly="readonly" class="form-control" name="staff_name" placeholder="请输入姓名" type="text" value="{$info.staff_name}">
        </div>
      </div>

      <div class="col-md-4">
        <div class="form-group">
          <label>现入职公司</label>
          <span>（现入职公司）</span>
          <input class="form-control" readonly="readonly" name="name" placeholder="请输入全勤" type="text" value="{$info.name}">
        </div>
      </div>
       <div class="col-md-4">
        <div class="form-group">
          <label>现入职部门</label>
          <span>（现入职部门）</span>
          <input class="form-control" name="branch_name" readonly="readonly" placeholder="请输入补贴" type="text" value="{$info.branch_name}">
        </div>
      </div>

      <div class="col-md-4">
        <div class="form-group">
          <label>现入职组</label>
          <span>（现入职组）</span>
          <input class="form-control" name="group_name" readonly="readonly" type="text" value="{$info.group_name}">
        </div>
      </div>


       <div class="col-md-4">
        <div class="form-group">
          <label>现入职岗位</label>
          <span class="">（现入职岗位）</span>
            <input type="text" name="position" readonly="readonly" style="cursor:pointer"  class="form-control"  value="{$info.position}">
        </div>
      </div>

    </div>
  </div>
  <div class="box-body table-responsive" style="background: #fff;">
    <div style="width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    color: #19AA8D;
    text-align: center;
    cursor: pointer;
    background: #EAF8F5;
    border: 1px dashed #B0DDD4;font-weight: 900">调 岗 记 录</div>
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>姓名</th>
          <th>公司</th>
          <th>部门</th>
          <th>部门组</th>
          <th>岗位</th>
          <th>调岗备注</th>
          <th>调岗时间</th>
         <!--  <th>操作</th> -->
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr >
                  <td>{$info.staff_name}</td>
                  <td>{$vo.name}</td>
                  <td>{$vo.branch_name}</td>
                  <td>{$vo.group_name}</td>
                  <td>{$vo.p_name}</td>
                  <td>{$vo.m_reson}</td> 
                  <td>{$vo.move_time}</td>
                  <!-- <td class="text-center">
                      <ob_link><a href="{:url('staffEdit', array('id' => $vo['id']))}" class="btn" style="padding:2px 5px"><i class="fa fa-edit"></i> 编 辑</a></ob_link>
                      &nbsp;                  
                  </td> -->
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>
<div class="box-footer"><a class="btn yh_close" style="color:#fff;background:#3c8dbc;" href="javascript:history.back(-1);"><i class="fa fa-history"></i> 返 回</a></div>
  

</div>
<script src="__STATIC__/module/admin/laydate/laydate.js"></script>
<script src="__STATIC__/module/admin/laydate/layer.js"></script>
<script>
 //调职
    $('.PositionAdd').click(function(){
      url=$(this).attr('url');
      layer.open({
        type: 2,
        shade: false,
        title: false, //不显示标题
        content:url, //捕获的元素
        area: ['800px','600px']
      });
    })
    //导出功能
    $(".export").click(function(){
        
        window.location.href = searchAllFormUrl($(".export"));
    });

    // 时间插件
    lay('.test-item').each(function(){
      laydate.render({
        elem: this
        ,trigger: 'click'
        // ,type: 'month' //日期格式
      });
   });

    $('.layerDel').click(function(){
      var target =$(this).attr('url');
      layer.confirm('您确定要删除吗？', {
        btn: ['确认','取消'] //按钮
      }, function(){
        $.get(target).success(function(data){
          layer.closeAll();
          obalert(data);
        });
      })
    })

     $('.layerAudit').click(function(){
      var target =$(this).attr('url');
      var id=$(this).attr('id')
      var msg='';
      if(id==1){
        msg='您确定审核未通过吗？'
      }else{
        msg='您确定审核通过吗？'
      }
      layer.confirm(msg, {
        btn: ['确认','取消'] //按钮
      }, function(){
        $.get(target).success(function(data){
          layer.closeAll();
          obalert(data);
        });
      })
    })

    $('.workaudit').click(function(){
      var target =$(this).attr('url');
      layer.confirm('你确定已经离职吗', {
        btn: ['确认','取消'] //按钮
      }, function(){
        // $.get(target).success(function(data){
           layer.closeAll();
        //   obalert(data);
        // });
        layer.open({
        type: 2,
        shade: false,
        title: false, //不显示标题
        content:target, //捕获的元素
        area: ['480px','400px']
      });

      })
    })
</script>